package com.wushi.lenovo.asia5b.app_ui.credit.activity;

import android.content.Intent;
import android.view.View;

import com.mvp.base.BaseAppCompatActivity;
import com.wushi.lenovo.asia5b.R;
import com.wushi.lenovo.asia5b.app_model.credit.bean.TransactionHisType;

import butterknife.OnClick;

/**
 * Created by zhangyuncai on 2019/1/16.
 * 转账历史
 */
public class TransHistoryActivity extends BaseAppCompatActivity {
    @Override
    protected int getLayoutId() {
        return R.layout.activity_transhistory;
    }

    @OnClick({
            R.id.tv_his_topup,
            R.id.tv_his_credit,
            R.id.tv_his_all,
            R.id.tv_his_withdraw
    })
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.tv_his_topup: {
                Intent intent = new Intent(this, TransHisListActivity.class);
                intent.putExtra("TransactionHisType", TransactionHisType.topup);
                startActivity(intent);
            }
            break;
            case R.id.tv_his_credit: {
                Intent intent = new Intent(this, TransHisListActivity.class);
                intent.putExtra("TransactionHisType", TransactionHisType.credittrans);
                startActivity(intent);
            }
            break;
            case R.id.tv_his_withdraw: {
                Intent intent = new Intent(this, TransHisListActivity.class);
                intent.putExtra("TransactionHisType", TransactionHisType.withdraw);
                startActivity(intent);
            }
            break;
            case R.id.tv_his_all: {
                Intent intent = new Intent(this, TransHisListActivity.class);
                intent.putExtra("TransactionHisType", TransactionHisType.all);
                startActivity(intent);
            }
            break;
            default:
                break;
        }
    }
}
